#ifndef WACONSTS_H
#define WACONSTS_H

#define WA_GMAP 1
#define WA_GDSA 2
#define WA_GSPECT 3
#define WA_GBLACK 4

#define DELTA_WAVE_L 0.5
#define DELTA_WAVE_H 4.0
#define DELTA_WAVE_COLOR RGB(125,255,0)

#define THETA_WAVE_L 4.0
#define THETA_WAVE_H 8.0
#define THETA_WAVE_COLOR RGB(0,255,255)

#define ALPHA1_WAVE_L 8.0
#define ALPHA1_WAVE_H 10.0
#define ALPHA1_WAVE_COLOR RGB(40,215,40)

#define ALPHA2_WAVE_L 10.0
#define ALPHA2_WAVE_H 13.0
#define ALPHA2_WAVE_COLOR RGB(255,128,0)

#define BETA1_WAVE_L 13.0
#define BETA1_WAVE_H 20.0
#define BETA1_WAVE_COLOR RGB(255,0,255)

#define BETA2_WAVE_L 13.0
#define BETA2_WAVE_H 20.0
#define BETA2_WAVE_COLOR RGB(255,242,0)

#define OTHER_WAVE_COLOR RGB(160,160,160)

#define FFT_GRAPH_PER_PAGE 8

#define BMP_HEIGHT 800
#define BMP_WIDTH 1280

#define MARGIN_WIDTH 80
#define TEXT_FONT L"Cambria"
#define TITLE_SIZE 14
#define TEXT_SIZE 20
#define AXIS_TEXT_SIZE 12
#define DATE_TEXT_SIZE 10
#define AXIS_WIDTH 2.0
#define MAX_SCALER 0.8
#define AXIS_SEGMENT 5

#define BG_COLOR RGB(0,0,160)

#define FRE_FULL_SCALE 2
#define VTM_INTERVAL 10
#define SPE_GAIN 3.5
#define SPE_STEP 0.5
#define SPE_PERCENTAGE 85
#define FFT_ANAPOINT 512
#define FFT_INTERVAL 30



struct MAPOutput{
	//unsigned int region;
	//std::complex<double> *out;
	double max;
	std::vector< std::vector<double> > data;
	int signiture;

};

struct BMPBuffer{
	union{
		int eid;
		int signiture;
	};
	Bitmap *bmp;
	BMPBuffer(const BMPBuffer &source){
		eid = source.eid;
		signiture = source.signiture;
		bmp = source.bmp->Clone(0,0, source.bmp->GetWidth(), source.bmp->GetHeight(), source.bmp->GetPixelFormat());
	}
	BMPBuffer(){
		eid = 0 ;
		bmp = 0;
	}
	~BMPBuffer(){
		if(bmp)
			delete bmp;
	}
};



#define WA_DSA_LAYOUT_ALL 0					//all channel in a single graph
#define WA_DSA_LAYOUT_HEMICMP 1		//comparison between left and right

#define DATA_REF_TYPE_A 0
#define DATA_REF_TYPE_C 1
#define DATA_REF_TYPE_NONE -1


#define TOOLBAR_HEIGHT 0
#define FFT_MAX_FREQ 50
#define FFT_WND_WIDTH  650
#define FFT_WND_HEIGHT 700 

#define DSA_MAX_FREQ 25.0
#define DSA_SMALL_MARGIN 10
#define DSA_WINDOW_WIDTH 2
#define DSA_GRAPH_GAPWIDTH 20

#endif